package ca.ets.osgi.planeservice;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import ca.ets.osgi.planeinterface.IPlaneReservation;

public class Activator implements BundleActivator {

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
		
		IPlaneReservation service = new PlaneService();
		context.registerService(IPlaneReservation.class.getName(), service, null);
		System.out.println("IPlaneReservation was registered");
	}

	/*
	 * (non-Javadoc)
	 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
	}

}
